package com.im.service.purchasePlan.smo;

import com.im.service.dto.PurchasePlan;

import java.util.Map;

/**
 *
 * 采购计划 事务操作SMO
 * @author wangxh
 * 2018年3月27日
 */
public interface IPurchasePlanOperSMO {

    /**
     *
     * 新增采购计划 项目信息.
     * @throws Exception
     */
    public void addPurchasePlan(PurchasePlan purchasePlan) throws Exception;

    /**
     * 更新采购计划项目信息
     * @param purchasePlan
     * @return
     * @throws Exception
     */
    public void updatePurchasePlan(PurchasePlan purchasePlan) throws Exception;

    /**
     * 更新采购计划项目信息(all col)
     * @param purchasePlan
     * @throws Exception
     */
    public void updatePurchasePlanAll(PurchasePlan purchasePlan) throws Exception;
    /**
     * 删除采购计划项目信息
     * @param purchasePlan
     * @return
     * @throws Exception
     */
    public void deletePurchasePlan(PurchasePlan purchasePlan) throws Exception;
    /**
     * 批量删除采购计划.
     * @param reqMap
     * @return
     * @throws Exception
     */
    public void deletePurchasePlanByIds(Map<String,Object> reqMap) throws Exception;

    /**
     * 上传采购计划文件
     * @param inJson
     * @return
     * @throws Exception
     */
    public String uploadFileToPurchasePlan(String inJson) throws Exception;

}
